package exception;

/**
 * @author futao
 * Created on 2017/12/1 - 10:31.
 */
public class PrintStackTraceTest {
    public static void main(String[] args) {
        PrintStackTraceTest printStackTraceTest = new PrintStackTraceTest();
        printStackTraceTest.firstMethod();
    }

    public void firstMethod() {
        secondMethod();
    }

    public void secondMethod() {
        thirdMethod();
    }

    public void thirdMethod() {
        throw new MyException("Niu");
    }
}
